const main = require('express').Router()
const {userRouter} = require('./user')
const {questionBaseRouter} = require('./questionBase')
const {organizationRouter} = require('./organizetion')
const {examinationRouter} = require('./examination')
const {paperRouter} = require('./paper')
// main.use('/',(req,res)=>{
//     const body=req.body
//     res.status(200).send({
//         data:null,
//         meta:{
//             msg:'Not Found',
//             status:404
//         },
//         query:req.query,
//         body1:req.body
//     })
    
// })

// 分路由user
main.use("/echo",(req,res)=>{

    res.status(400).send({
        msg:"根目录响应成功"
    })
    
})
main.use('/user',userRouter);
main.use('/questionbase',questionBaseRouter);
main.use('/organization',organizationRouter);
main.use('/examination',examinationRouter);
main.use('/paper',paperRouter)



module.exports = main